<extend name="Public/base"/>
<block name="body">
  <form method="post" class="form-horizontal J_ajaxForm"  action="{:U("Admin/Admin/add")}">
    <div class="tab-content">
   
    <div class="space-4"></div>
    <div class="form-group">
            <label class="col-sm-2 control-label "> 账号 </label>
            <div class="col-sm-10">
              <input type="text"    name="name" class="col-xs-10 col-sm-5" />
               </div>
          </div>
     <div class="space-4"></div>
      <div class="form-group">
            <label class="col-sm-2 control-label "> 名称 </label>
            <div class="col-sm-10">
              <input type="text"    name="nickname" class="col-xs-10 col-sm-5" />
               </div>
          </div>
           <div class="space-4"></div>
          <div class="form-group">
            <label class="col-sm-2 control-label "> 密码 </label>
            <div class="col-sm-10">
              <input type="password"    name="pass" class="col-xs-10 col-sm-5" />
               </div>
          </div> <div class="space-4"></div>
          <div class="form-group">
            <label class="col-sm-2 control-label "> 邮箱 </label>
            <div class="col-sm-10">
              <input type="text"    name="email" class="col-xs-10 col-sm-5" />
               </div>
          </div> <div class="space-4"></div>
           <div class="form-group">
            <label class="col-sm-2 control-label "> 角色 </label>
            <div class="col-sm-10">
              <foreach name="groups" item="vo">
                <label class="checkbox inline mr10">
                  <input value="{$vo.id}" type="checkbox" name="group_id[]" />
                  {$vo.title} </label>
              </foreach>
               </div>
          </div> <div class="space-4"></div>




          <div class="form-group">
            <label class="col-sm-2 control-label "> 状态 </label>
            <div class="col-sm-10">
              <label class="radio inline">
                <input type="radio"  name="status"   value="1"  checked="checked">
                正常 </label>
              <label class="radio inline">
                <input type="radio"  name="status"   value="0" >
                禁用</label>
               </div>
          </div>
         <div class="space-4"></div>
        
    </div>
    <div class="form-actions">
      <button class="btn btn-info ajax-post" target-form="J_ajaxForm" type="submit"> 添加</button>
      <a class="btn btn-return" href="__URL__" >返 回</a>
    </div>
  </form>
</block>
